package com.woniuxy.propertyjava.service;

import com.woniuxy.propertyjava.entity.Department;
import org.springframework.stereotype.Service;

import java.util.List;

public interface DepartmentService {
    List<Department> getDepartmentByDepartmenttype(String departmenttype);  //通过部门类型获取部门信息

    List<Department> getAllDepartment();   //获取所有部门信息

    void insertDepartment(Department department);  //添加部门信息

    void deletDepartmentByDepartmentid(int departmentid); //删除部门

    void updateDepartment(Department department);   //修改部门信息
}
